﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.announcers.announcerinteractions {
    import Display.DialogUI.*;
    import Display.*;
    import Classes.announcers.*;

    public class AnnouncerInteractionDialog extends BaseAnnouncerInteraction implements IAnnouncerInteraction {

        private var m_dialog:GenericDialog;

        public function AnnouncerInteractionDialog(_arg1:AnnouncerData, _arg2:XML){
            super(_arg1);
            var _local3:String = ZLoc.t("Announcements", _arg2.attribute("text").toString());
            var _local4:String = ZLoc.t("Announcements", _arg2.child("text").toString());
            var _local5:String = ((_arg2.attribute("acceptButtonLoc").length() > 0)) ? _arg2.attribute("acceptButtonLoc").toString() : "Okay";
            var _local6:String = _arg2.attribute("picUrl").toString();
            this.m_dialog = new GenericPictureDialog(_local4, "", GenericPopup.TYPE_OK, null, _local3, "", true, 0, _local5, _local6);
        }
        public function activate():void{
            UI.displayPopup(this.m_dialog);
        }

    }
}//package Classes.announcers.announcerinteractions 
